package com.wugenqiang.project.system.pojo;

import java.io.Serializable;

/**
 * @Classname User
 * @Description TODO
 * @Date 2019/3/7 18:21
 * @Created by WuGenQiang//fighting!!
 */
public class User implements Serializable {

    private Integer id;             //用户id

    private String username;            //用户名

    private String password;        //用户密码

    private Integer type;           // 用户类别 0：普通用户 1：管理员

    public User() {
    }

    public User(String username, String password, Integer type) {
        this.username = username;
        this.password = password;
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", type=" + type +
                '}';
    }
}
